package xiaye.mycrawler;

import java.util.HashSet;
import java.util.Set;

public class MemoryPageStore implements PageStore{
	Set<Address> already = new HashSet<Address>();
	public void storePage(Page page) {
		already.add(page.getFinalAddress());
	}

	public boolean addressAlreadyExists(Address address) {
		return already.contains(address);
	}

}
